package com.example.demo.mapper;

import com.example.demo.entity.Macro;
import com.example.demo.entity.MouthData;
import com.example.demo.entity.MouthDataDto;
import com.example.demo.entity.MouthDataDto2;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Mapper
public interface MacroMapper {

    //查询全部产业和名称
    List<Macro> selectAllMacro(@Param("name") String name,@Param("id")int id);

    List<Macro> selectFist();

    //查询详情
    List<MouthData> selectMouthData(@Param("Fid") int Fid, @Param("year") int year);

    //修改详情
    int updateMouthData(MouthData mouthData);

    //新增
    int addMouthData(@Param("Fid") int Fid, @Param("year") int year,@Param("lastUpTime") String lastUpTime,@Param("updateUiD")int updateUiD);

    //查询所有指标
    List<MouthDataDto2> selectNewMouthData(@Param("name") String name, @Param("id")int id);

    List<Macro> selectSeData();

    List<Macro> queryThirData(@Param("id") int id,@Param("name")String name);

    List<Macro> queryOfNon(String name);
}
